Repository navigation
feat(manila): add quota metrics and logical share inventory - #5
Open
davidhulick wants to merge 3 commits into
Open
davidhulick wants to merge 3 commits into
davidhulick wants to merge 3 commits into
Conversation
Export project and share-type quota accounting with configured defaults, precedence, bounded database reads and separate collection health. Select one inventory row per logical share and expose Manila capacities in bytes. Preserve signed accounting and the unlimited limit sentinel. Include startup, timeout, accounting, inventory and metric contract tests. Requires compatible public openstackdb Manila and Octavia APIs; retain the canonical module dependency pending public dependency reconciliation. Signed-off-by: David Hulick <dave.hulick@gmail.com>
Seed all Manila quota resources with explicit active-row markers. Check project and share-type values, exact labels, signed reservations and the 64 GiB per-share limit in bytes. Verify logical inventory uniqueness, zero-instance and retained shares, and absence of the old capacity family. Preserve existing Octavia and other-service assertions. Integration-tag vet passes; native execution requires an available Docker provider. Signed-off-by: David Hulick <dave.hulick@gmail.com>
Use the generated project and share-type queries, accumulating nullable usage and reservations in signed int64 totals. Keep project accounting separate and preserve limit precedence and collection health. Omit NULL-name type scopes without rejecting the scrape; valid empty names and independent project totals remain visible. Document this API limitation and cover raw accounting, large totals and current inventory selection. Recognize the current Manila query in the timeout fixture. Signed-off-by: David Hulick <dave.hulick@gmail.com>
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Manila quota monitoring and improve share inventory collection to report logical shares rather than individual share instances.
This change introduces project-level and share-type-level quota metrics, improves quota accounting and health reporting, and converts share capacity metrics to Prometheus base units (bytes).
The implementation uses the current raw quota query APIs from [openstackdb PR #3](samaritanark/openstackdb#3).
Changes
Manila quota monitoring
openstack_sharev2_quota_upto distinguish quota collection failures from share inventory failures.Logical share inventory
openstack_sharev2_share_gbwithopenstack_sharev2_share_bytes.Configuration
Validation
The implementation received an independent adversarial review, with no critical, high, or medium-severity defects identified.
Completed validation includes:
The remaining mutation concerns test coverage for hardcoded upstream quota defaults; the existing values were independently verified against Manila.
Dependencies
This contribution is stacked on the Octavia exporter contribution in
contrib/octavia-quotas-2b3.It requires the pending public
openstackdbcontributions:Validation used a temporary workspace combining these public library contributions.
The committed module currently references
openstackdb v0.2.1, which does not contain the required APIs. A dependency update and standalone CI validation will be necessary once compatible upstream revisions are available.Known limitations
Scope
This PR is limited to Manila quota monitoring, logical share inventory, associated configuration, and tests.
It does not include unrelated Cinder, Neutron, or Nova changes.